home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / miscgiskit / MiscPlanetCoordConverter.h < prev    next >
Encoding:
Text File  |  1995-07-08  |  1.3 KB  |  53 lines

  1. /*====================== MiscPlanetCoordConverter.h =========================*/
  2. /* MiscPlanetCoordConverter class supports the calculations required for
  3.    converting between World and Universal Transverse Mercator coordinates.
  4.  
  5.    DMA Release 0.8, Copyright @1993 by Genesis Project, Ltd. All Rights
  6.    Reserved. For further information on terms and conditions see
  7.         the MiscKit license.
  8.  
  9. HISTORY
  10. 12-Mar-93  Dale Amon at GPL
  11.        Split UTMGrid into constants and converter parts.
  12. 22-Feb-93  Dale Amon at GPL
  13.        Created.
  14. */
  15.  
  16. #import <appkit/appkit.h>
  17. #import <misckit/miscgiskit.h>
  18.  
  19. @class MiscUTMConstants;
  20.  
  21. #define    MISC_PLANET_CONVERT_VERSION_ID    0.8
  22.  
  23. @interface MiscPlanetCoordConverter:MiscCoordConverter
  24. {    MiscUTMConstants    *xlate;        /* where to find the conversion
  25.                        constants */
  26.  
  27.     /* blackboard for temporary calculations */
  28.     double    sinPhi,sin2Phi;
  29.     double    rho;
  30.     double    nu;
  31.     double    etaSqrd;
  32.     double    M;
  33. }
  34.  
  35. + initialize;
  36. + new;
  37. - finishUnarchiving;
  38.  
  39. /* exported ONLY for use in writing modified UTM's. I'd actually prefer
  40.    not to do this at all...
  41. */
  42. - (void) blackboardCalc: (double) phi;
  43. - (double) calcM: (double) phi;
  44. - (double) calcPhiPrime: (double) N;
  45. + superalloc;
  46.  
  47. /* These are overridden to block their use */
  48. + alloc;
  49. + allocFromZone: (NXZone *)zone;
  50. - free;
  51.  
  52. @end
  53.